package com.erp.purchase.returns.service.Impl;

import com.erp.common.core.domain.AjaxResult;
import com.erp.purchase.receipts.domain.ErpPurchaseReceipts;
import com.erp.purchase.returns.domain.ErpPurchaseReturns;
import com.erp.purchase.returns.mapper.ErpPurchaseReturnsMapper;
import com.erp.purchase.returns.service.ErpPurchaseReturnsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * --- 天道酬勤 ---
 *
 * @author ZhangYuqi
 * @date 2025/9/6
 * @desc
 */
@Service
public class ErpPurchaseReturnsServiceImpl implements ErpPurchaseReturnsService {
    @Autowired
    private ErpPurchaseReturnsMapper erpPurchaseReturnsMapper;

    @Override
    public List<ErpPurchaseReturns> selectPurchaseReturnsList(ErpPurchaseReturns erpPurchaseReturns) {
        return erpPurchaseReturnsMapper.selectPurchaseReturnsList(erpPurchaseReturns);
    }

    @Override
    public AjaxResult selectPurchaseReturnsById(String returnNo) {
        return AjaxResult.success(erpPurchaseReturnsMapper.selectPurchaseReturnsById(returnNo));
    }


}
